import request from '@/utils/request'
const apix = 'dev-api'
// api地址
const api = {
	guarantee_list: apix + '/serve/guarantee/list',
	guarantee_export: apix + '/serve/guarantee/export',
	serve_guarantee: apix + '/serve/guarantee',
	// serve_guarantee: apix + '/serve/guarantee',
	serve_guaranteeId: apix + '/serve/guarantee/',
}

//查询报修信息列表
export function guaranteeList(obj) {
	return request.get(api.guarantee_list, {
		...obj
	})
}
//导出报修信息列表
export function guaranteeExport(obj) {
	return request.post(api.guarantee_export, {
		...obj
	})
}
//获取报修信息详细信息
export function guaranteeId(id) {
	return request.get(api.serve_guaranteeId + id)
}
//新增报修信息
export function addguarantee(obj) {
	return request.post(api.serve_guarantee, {
		...obj
	})
}
//修改报修信息
export function putguarantee(obj) {
	return request.put(api.serve_guarantee, {
		...obj
	})
}
//删除报修信息
export function delguarantee(id) {
	return request.delete(api.serve_guaranteeId + id)
}